/*#include "MainMultiThread.h"
#include "ClientThread.h"
#include "BarberShop.h"
#include "Poco/Thread.h"
#include "Poco/Runnable.h"

#define BARBER_THREAD_ID    0
#define CLIENT_THREAD_ID	1


using Poco::Thread;
using Poco::Runnable;


MainMultiThread::MainMultiThread(void)
{
}

MainMultiThread::~MainMultiThread(void)
{
}


void MainMultiThread::Start()
{
	BarberShop *barberShop = new BarberShop(); //BarberShop deberia ser un Singleton?
	
	Thread *barberThread = new Thread();

	Runnable *clientRunnable = new ClientThread(barberShop, CLIENT_THREAD_ID);
	Runnable *barberRunnable = new BarberThread(barberShop, BARBER_THREAD_ID);
	//		barberThread->start(*barberRunnable);

	bool exit = false;
	int clientTimeCounter;
	int clientTimeInterval;//esto es rand
	
	barberThread->start(*barberRunnable);

	while(!exit)
	{
		clientTimeCounter++;
		baberTimeCounter++;
		//crea cliente == thread
		if (clientTimeCounter >= clientTimeInterval)
		{
			Thread *clientThread = new Thread();
			Runnable *clientRunnable = new ClientThread(barberShop, CLIENT_THREAD_ID);
			
			clientThread->start(*clientRunnable);
		}
	}
}*/